/*
 * @Author: 15837245222 811160228@qq.com
 * @Date: 2025-09-05 09:15:52
 * @LastEditors: 15837245222 811160228@qq.com
 * @LastEditTime: 2025-10-22 13:55:41
 * @FilePath: \龙飞1\src\api\modelLog.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'

const modelApi = {
  List: '/modelApi/modelOperation/modelOperationLog',
  CallList: '/modelApi/modelLog/queryHolmesLogs',
  LogDetail: '/modelApi/modelLog/queryHolmesDetailLog',
  PythonBatchTesting: '/modelApi/pythonModelManage/pythonModelTestResultList',
}

export function getModelLogList(parameter) {
  return request({
    url: modelApi.List,
    method: 'get',
    // data: parameter,
    // formData: true,
    params: parameter,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8',
    },
  })
}

export function getModelCallLogList(parameter) {
  return request({
    url: modelApi.CallList,
    method: 'get',
    params: parameter,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8',
    },
  })
}

export function getModelCallLogDetail(parameter) {
  return request({
    url: modelApi.LogDetail,
    method: 'get',
    params: parameter,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8',
    },
  })
}

export function getPythonBatchTesting(parameter) {
  return request({
    url: modelApi.PythonBatchTesting,
    method: 'get',
    params: parameter,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8',
    },
  })
}
